package com.e2edour.facade.abc

import com.e2edour.facade.enums.ResCodeEnum

import scala.beans.BeanProperty

/**
  * <p>
  *
  * @author King 
  * @since 2017/1/17
  */
class AbsResponse extends Serializable {

  @BeanProperty var resCode: Int = ResCodeEnum.success.id

  @BeanProperty var resDesc: String = ResCodeEnum.success.toString


  def setSystemErrorMsg() = {
    this.resCode = ResCodeEnum.systemError.id
    this.resDesc = ResCodeEnum.systemError.toString
  }


  override def toString = s"AbsResponse($resCode, $resDesc)"
}
